home *** CD-ROM | disk | FTP | other *** search
- package Code.WINDOWS
- {
- import Code.LIB._cg33;
- import Code.LIB._ct751;
- import Code.LIB._gt710;
- import Code.LIB._my111;
- import Code.LIB._vx23;
- import Code.LIB._wy567;
- import Code.OPTIONS.LEVELS;
- import Code.OPTIONS._gs337;
- import Code.WINDOWS.DIALOGS._jt456;
- import Code._fi197;
- import flash.events.Event;
- import flash.events.MouseEvent;
-
- public class _wd183 extends _gt710
- {
- public static const stNormal:int = 0;
-
- public static const stEnterName:int = 1;
-
- private var iPlayers:Array;
-
- private var iLabel:_wy567;
-
- public var iEnterName:_jt456;
-
- public var iOk:_ct751;
-
- public var iCancel:_ct751;
-
- public var iDelete:_ct751;
-
- public var iNew:_ct751;
-
- private var iInd:int;
-
- public var iBLeft:_ct751;
-
- public var iBRight:_ct751;
-
- public function _wd183()
- {
- var _loc1_:String = null;
- var _loc2_:Array = null;
- _loc1_ = _gs337.iLanguage.strOk;
- _loc2_ = [[_fi197._xy367,_gs337.iLanguage.strChangePlayer,_gs337.cGreen,50,_my111.SmallText,90,30,null,true],[_fi197._tr788,_gs337.iLanguage.strOk,_gs337.cGellGreen,170,50,28,_gs337.cWhite,35,300,"iOk",true],[_fi197._tr788,_gs337.iLanguage.strCancel,_gs337.cGellRed,170,50,28,_gs337.cWhite,300,300,"iCancel",true],[_fi197._ww533,_gs337.cGellAqua,500,170,false,0.7,20,110,null,true],[_fi197._tr788,_gs337.iLanguage.strNew,_gs337.cGellGreen,120,50,25,_gs337.cWhite,380,120,"iNew",true],[_fi197._tr788,_gs337.iLanguage.strDelete,_gs337.cGellRed,120,50,25,_gs337.cWhite,380,200,"iDelete",true],[_fi197._cf377,40,40,"<",_gs337.cOrange,40,50,210,"iBLeft",true],[_fi197._cf377,40,40,">",_gs337.cOrange,40,170,210,"iBRight",true]];
- super(_loc2_);
- this.iPlayers = _cg33._ts507;
- _pp317();
- }
-
- override public function _ba289(param1:MouseEvent) : void
- {
- if(this.iEnterName)
- {
- return;
- }
- if(param1.target == this.iNew._en365)
- {
- this.State = stEnterName;
- }
- if(param1.target == this.iBLeft._en365)
- {
- if(this.iInd == 0)
- {
- return;
- }
- --this.iInd;
- this.Label = this.iPlayers[this.iInd];
- }
- if(param1.target == this.iBRight._en365)
- {
- if(this.iInd >= this.iPlayers.length - 1)
- {
- return;
- }
- ++this.iInd;
- this.Label = this.iPlayers[this.iInd];
- }
- if(param1.target == this.iDelete._en365)
- {
- _cg33._og419(this.iPlayers[this.iInd][0]);
- if(!_cg33._ss555)
- {
- this.State = stEnterName;
- this.iLabel.Text = " ";
- return;
- }
- this.Label = _cg33._ss555;
- this.iInd = _cg33.iPlayerPos;
- }
- if(param1.target == this.iOk._en365)
- {
- _cg33._jl606(this.iPlayers[this.iInd][0]);
- this.hide();
- }
- if(param1.target == this.iCancel._en365)
- {
- this.hide();
- }
- }
-
- public function _pp317() : void
- {
- this.iLabel = new _wy567(34,_gs337.cAquaLight,_my111.SmallText);
- this.addChildAt(iLabel,6);
- this.iLabel._vq458 = 40;
- this.iLabel._vg471 = 120;
- this.Label = _cg33._ss555;
- this.iInd = _cg33.iPlayerPos;
- this.State = stNormal;
- this._xe768(50,0);
- }
-
- private function set Label(param1:Array) : void
- {
- var _loc2_:* = null;
- var _loc3_:String = null;
- var _loc4_:String = null;
- _loc2_ = new String();
- if(_vx23._xp514)
- {
- _loc3_ = _gs337.iLanguage.strRoundzLevel + ": " + _gs337.iLanguage.strFinished;
- }
- else
- {
- _loc3_ = _gs337.iLanguage.strRoundzLevel + ": " + int(_cg33._ss555[1].prRoundzLevel + 1) + "/" + LEVELS.RoundzLevels.length;
- }
- if(_vx23._bu14)
- {
- _loc4_ = _gs337.iLanguage.strBlockzLevel + ": " + _gs337.iLanguage.strFinished;
- }
- else
- {
- _loc4_ = _gs337.iLanguage.strBlockzLevel + ": " + int(_cg33._ss555[1].prBlockzLevel + 1) + "/" + LEVELS.BlockzLevels.length;
- }
- _loc2_ = _gs337.iLanguage.strPlayerName + ": " + String(param1[0]) + "\n";
- _loc2_ += _loc3_ + "\n";
- _loc2_ += _loc4_ + "\n";
- this.iLabel.Text = _loc2_;
- }
-
- override public function onEnterFrame(param1:Event) : void
- {
- super.onEnterFrame(param1);
- switch(this.state)
- {
- case stNormal:
- break;
- case stEnterName:
- if(this.iEnterName._hy116 == false)
- {
- if(!this.iEnterName._gn229 && !_cg33._ss555)
- {
- this.iEnterName.show();
- return;
- }
- this.removeChild(this.iEnterName);
- if(this.iEnterName._gn229)
- {
- _cg33._jq283(this.iEnterName._gn229);
- this.iPlayers = _cg33._ts507;
- this.iInd = _cg33.iPlayerPos;
- this.Label = _cg33._ss555;
- }
- this.iEnterName._dx150();
- this.iEnterName = null;
- this.State = stNormal;
- }
- }
- }
-
- public function set State(param1:int) : void
- {
- this.state = param1;
- switch(this.state)
- {
- case stNormal:
- break;
- case stEnterName:
- this.iEnterName = new _jt456();
- this.addChild(this.iEnterName);
- }
- }
- }
- }
-
-